<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/animate.css">
    <title>Document</title>
    <style>
    p{
        width: 200px;
        height: 200px;
        background: yellow
    }
    .fade-enter-active{
        animation: bounce-in 0.5s
    }
    .fade-leave-active{
        animation: bounce-out .5s
    }
    @keyframes bounce-in{
        0%{
            transform: scale(0)
        }
        50%{
            transform: scale(1.5);
        }
        100%{
            transform: scale(1)
        }
    }
    @keyframes bounce-out{
        0%{
            transform: scale(1)
        }
        50%{
            transform: scale(1.5)
        }
        100%{
            transform: scale(0)
        }
    }
    </style>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>
            <button @click="bool=!bool">按钮</button>
            <transition name="fade">
                    <p v-show="bool"></p>
            </transition>
           

        </div>

    </div>
    <script>
    new Vue({
        el:"#app",
        data:{
            bool:true
        }
    })
    
    </script>
    
</body>
</html>